package com.bbc.commonbackstage.web.controller.tool;

import com.bbc.commonbackstage.common.core.controller.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * swagger接口
 *
 * @author ruoyi
 */
@Api(tags = "swagger接口")
@Controller
@RequestMapping("/tool/swagger")
public class SwaggerController extends BaseController
{
    @ApiOperation("swagger文档")
    @PreAuthorize("@ss.hasPermi('tool:swagger:view')")
    @GetMapping()
    public String index()
    {
        return redirect("/doc.html");
    }
}
